package com.vhall.component.service.rbac;


import com.vhall.component.entity.account.RoleMenuesEntity;
import com.vhall.component.entity.rbac.vo.MenuesRspVO;
import com.vhall.component.entity.rbac.vo.MenuesVO;

import java.util.List;

/**
 * @author dalong
 * @date 2021-05-18 15:12
 */
public interface RbacRoleMenuService {

    /**
     * 根据角色获取菜单列表
     *
     * @param roleId
     * @return
     */
    List<Integer> getMenuIdListByRoleId(Integer roleId);

    /**
     * 获取菜单列表
     *
     * @param menuIdList
     * @param roleId
     * @return
     */
    List<MenuesRspVO> getMenuesListByMenuIds(List<Integer> menuIdList, Integer roleId);

    /**
     * 插入
     *
     * @param roleMenuesEntity
     * @return
     */
    Integer insert(RoleMenuesEntity roleMenuesEntity);

    /**
     * 按角色获取菜单列表
     *
     * @param roleId
     * @return
     */
    List<MenuesVO> getListByRoleId(Integer roleId);
}
